[bug][java] Nullable Object Incompatible Types Cannot Infer Type

[bug][java] Nullable Object Incompatible Types Cannot Infer Type